package com.zx.viewlearn.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.airbnb.lottie.LottieAnimationView;
import com.zx.viewlearn.R;

public class LottieLearnActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lottie_learn);
        LottieAnimationView animationView = (LottieAnimationView) findViewById(R.id.animation_view);
        animationView.setImageAssetsFolder("");
        animationView.setAnimation("building_screen.json");
        animationView.setRepeatCount(-1);
        animationView.playAnimation();

//
//        作者：Trojx
//        链接：https://www.jianshu.com/p/9a2136ecbc7b
//        來源：简书
//        著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。
    }
}
